# -*- codeing = utf-8 -*-
# @Time : 2021/2/27 23:15
# @Atuthor: 朱朱
# @File: exceptions.py
# @Software: PyCharm
class LengthError(Exception):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __str__(self):
        return '长度必须要在{}至{}之间'.format(self.x, self.y)